 

apt-get update
apt-get install -y git vim wget unzip sudo xserver-xorg openjdk-11-jre cmake libtool build-essential pkg-config autogen ocaml ocamlbuild bison flex texinfo python-dev python-mako python-six swig3.0 python3-mako python3-numpy python3-distutils
mkdir -p /home/android/src
 
git clone --recursive https://gitee.com/charlies-ls/gnuradio-android.git

cd /home/android/src/gnuradio-android/thrift && \
git clean -xdf && \
./bootstrap.sh && \
./configure --disable-tests --disable-tutorial --with-cpp --without-python --without-qt4 --without-qt5 --without-py3 --without-go --without-nodejs --without-c_glib --without-php --without-csharp --without-java --without-libevent --without-zlib 
make -j8 && sudo make install

 

cd /home/android/src && \
wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/3.6.3.0/android-studio-ide-192.6392135-linux.tar.gz && \
tar xvf android-studio-ide-192.6392135-linux.tar.gz && \
rm android-studio-ide-192.6392135-linux.tar.gz && \
wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip && \
unzip commandlinetools-linux-6200805_latest.zip

mkdir -p /home/android/Android/Sdk
ENV ANDROID_HOME /home/android/Android/Sdk
WORKDIR /home/android/src/tools/bin

yes | ./sdkmanager --sdk_root=${ANDROID_HOME} --licenses && \
yes | ./sdkmanager --sdk_root=${ANDROID_HOME} "platforms;android-29" && \
yes | ./sdkmanager --sdk_root=${ANDROID_HOME} "ndk;21.3.6528147" && \
yes | ./sdkmanager --sdk_root=${ANDROID_HOME} "platform-tools" && \
yes | ./sdkmanager --sdk_root=${ANDROID_HOME} "build-tools;30.0.0" && \
yes | ./sdkmanager --sdk_root=${ANDROID_HOME} "cmake;3.10.2.4988404" && \
yes | ./sdkmanager --sdk_root=${ANDROID_HOME} "cmdline-tools;latest"

WORKDIR /home/android/src/gnuradio-android
./build.sh
#./build_aarch64.sh

WORKDIR /home/android/src
git clone https://github.com/bastibl/android-benchmark.git && \
git clone https://github.com/bastibl/android-volk.git && \
git clone https://github.com/bastibl/android-fm.git && \
git clone https://github.com/bastibl/android-hw.git && \
git clone https://github.com/bastibl/android-wlan.git 

WORKDIR /home/android/src/gnuradio-android

ENTRYPOINT ["/bin/bash"]



